package com.lu.manage.modular.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lu.manage.core.common.exception.SysLogExcepetion;
import com.lu.manage.modular.system.model.Task;

import java.util.Map;

/**
 * @Project sKnowledge-Blog
 * @Author: zhanglu
 * @Date: 2019-11-15 08:42:04
 * @Description: 系统任务表 服务类
 */
public interface TaskService extends IService<Task> {

    /**
     * 分页查询
     */
    Object listPage(Map<String, Object> map) throws SysLogExcepetion;

    /**
     * 列表查询
     */
    Object list(Map<String, Object> map) throws SysLogExcepetion;

    /**
     * 添加
     */
    Object addObj(Task task) throws SysLogExcepetion;

    /**
     * 修改
     */
    Object updateObj(Task task) throws SysLogExcepetion;

    /**
     * 删除
     */
    Object deleteObj(String data) throws SysLogExcepetion;

    /**
     * 初始化任务
     * @throws SysLogExcepetion
     */
    void scheduleJobInitListener() throws SysLogExcepetion;

}
